<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/include/TagLib.jsp"%><html>
<head id="container" name="container">
<meta http-equiv="Content-Type" content="text/html; charset=gb18030">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="mon, 22 jul 2002 11:12:01 GMT">
<meta http-equiv="pragma" content="no-cache">
<title>邮箱系统</title>
<link rel="stylesheet" type="text/css" href="<c:url value='/index_files/comm20100f0f4f.css' />">
<link rel="stylesheet" type="text/css" href="<c:url value='/index_files/getcss.css' />">
<link type="text/css" rel="stylesheet" href="<c:url value='/index_files/webpushtip0de489.css' />">
<script language="javascript" src="<c:url value='/js/jquery-1.4.2.min.js' />"></script>
<style type="text/css">
html,body {
	padding: 0;
	margin: 0;
	overflow: auto;
	overflow-x: hidden;
}

html {
	height: 100%;
}

#mainFrame {
	position: absolute;
	_position: relative;
}
.bindacc .menu_item,.bindacc  .menu_item_high,.bindacc  .menu_item_nofun
	{
	padding: 0 10px 0 8px;
}
.max_width {
	width: 110px;
	overflow: hidden;
}
</style>
<script type="text/javascript">
	//退出
	function quit(){
		if(confirm("确定要退出吗？")){
			 location.href="<c:url value='/quit.do' />";
		}
	}
	//全文查询
	function queryAllMail(){
		var subject = $("#subject").val();
		window.parent.mainFrame.location.href="<c:url value='/listMailbox.do' />?queryStr="+encodeURI(encodeURI(subject))+"&state=1";
	}
	//设置账户
	function setMailAcc(){
		var url="<c:url value='/listAccount.do' />?idUserMail="+$('#email').val();
		$('#a_01').attr("href",url);
	}
</script>
</head>
	<body class="frame_class">
		<div class="getuserdata" id="topDataTd">
			<div class="topdata">
				<div class="topbg" style="height: 66px">
					<div class="setinfo addrtitle" id="SetInfo">
						<div class="right">
							<a href="JavaScript:quit();" target="_parent" class="toptitle">退出</a>
						</div>
						<div id="minimize_container" class="right"></div>
						<div id="gplayer_container" class="right"></div>
					</div>
					<div class="search_subject nowrap">
						<input type="text" size="30" class="searchinput" id="subject" name="subject" value="">
						<input type="button" value="查找" onClick="queryAllMail();" style="margin:0;padding:0px 20px;height:22px;">
					</div>
				</div>
				<div class="lgoo" id="logotips">
					<a class="imglogo pointer skinlogo"
						style="width: 215px; height: 60px;"
						href="https://mail.qq.com/cgi-bin/today?sid=qCeafiLqHJ6BcWEx&error=index&loc=frame_html,,,1"
						target="mainFrame" hidefocus=""><img t="3" e="imglogo"
							logotitle="" stylenum="24" id="imglogo"
							src="./index_files/logo_24_00aa5cc.gif" height="60">
					</a>
					<div class="switch">
						<div class="left" style="margin-top: 1px;">
							<b id="useralias">${sessionScope.loginUser.displayName}</b>
							<select name="email" id="email" onChange="setMailAcc();">
								<c:forEach items="${userMailList}" var="mail">
									<option value="${mail.idUserMail}">${mail.username}（${mail.email}）</option>
								</c:forEach>
							</select>
							<a href="<c:url value='/listAccount.do' />?idUserMail=${idUserMail}" target="mainFrame" id="a_01">设置</a>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="topline_height" id="sepLineTd">
			<div class="topline"></div>
		</div>
		<div class="newskinbody" id="leftPanel" oncontextmenu="call(&#39;navRightMenu&#39;,this,event);">
			<div id="navBarDiv">
				<ul class="navbar fdul" id="navBarTd">
					<li class="composepart fs" id="composebtn_td">
						<a id="composebtn" hidefocus="" href="<c:url value='/writeEmail.do' />"
							target="mainFrame">写信</a>
						<input type="button" class="composebtn" disabled="">
					</li>
					<li class="checkpart fs">
						<a href="<c:url value='/initMail.do' />" id="readmailbtn_link" hidefocus=""
							target="mainFrame">收信</a>
						<input type="button" class="checkbtn" disabled="">
					</li>
					<li class="addrpart fs">
						<a hidefocus="" href="<c:url value='/contactList.do' />" target="mainFrame"
							initlized="true" md="0">联系人</a>
						<input type="button" class="addrbtn">
					</li>
				</ul>
			</div>
			<div id="navMidBar" class="listbg listflow">
				<div id="folder" class="folderDiv" style="overflow-y: hidden; overflow-x: hidden;">
					<div>
						<div>
							<div id="OutFolder">
								<div id="SysFolderList">
									<ul class="fdul">
										<li id="folder_1_td" dr="1" class="fs" style="">
											<a id="folder_1" href="<c:url value='/listMailbox.do' />?state=1" target="mainFrame"
												class="f_size" title="" hidefocus="" initlized="true" md="0">收件箱</a>
										</li>
										<li id="folder_4_td" dr="4" class="fs" style="">
											<a id="folder_4" href="<c:url value='/listMailbox.do' />?state=2" target="mainFrame"
												class="f_size" title="" hidefocus="">草稿箱</a>
										</li>
										<li id="folder_3_td" dr="3" class="fs" style="">
											<a id="folder_3" href="<c:url value='/listMailbox.do' />?state=3" target="mainFrame"
												class="f_size" title="" hidefocus="">已发送</a>
										</li>
										<li id="folder_5_td" dr="5" class="fs"
											style="text-align: right;">
											<a id="folder_5" href="<c:url value='/listMailbox.do' />?state=4" target="mainFrame"
												class="f_size" title="" hidefocus=""
												style="text-align: left;">已删除</a>
										</li>
										<li id="folder_6_td" dr="6" class="fs"
											style="margin-bottom: -1px; text-align: right;">
											<a id="folder_6" href="<c:url value='/listMailbox.do' />?state=5" target="mainFrame"
												class="f_size" title="" hidefocus=""
												style="text-align: left;">垃圾箱</a>
										</li>
									</ul>
									<div class="sepline"></div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div id="navBottomTd" class="navbottom"></div>
		</div>
		<div id="mainFrameContainer">
			<iframe src="" name="mainFrame" id="mainFrame" frameborder="no" scrolling="auto" hidefocus=""></iframe>
		</div>
	</body>
</html>